extends Area2D


# Declare member variables here. Examples:
# var a = 2
# var b = "text"


# Called when the node enters the scene tree for the first time.
func _ready():
	$AudioStreamPlayer.play()
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	self.position.x += 1
	pass


func _on_WandouBullet_body_entered(body):
	# 最基本的法术伤害计算公式是：法术伤害 = 法术强度 × 技能系数。例如，一个技能的技能系数是 1.5，角色的法术强度是 100，那么这个技能造成的法术伤害就是 100×1.5 = 150。
	var shanghai = 100 *1.5
	body.sub("wandou",shanghai)
	get_parent().has_shoot = false
	body.play_hit()
	self.queue_free()
	pass
